package io.jee.runshan.service.impl;

import io.jee.medusa.orm.DaoSupport;
import io.jee.medusa.service.impl.BaseService;
import io.jee.runshan.dao.IKeywordAskDao;
import io.jee.runshan.domain.KeywordAsk;
import io.jee.runshan.service.IKeywordAskService;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class KeywordAskServiceImpl extends BaseService<KeywordAsk> implements IKeywordAskService {

	@Resource
	private IKeywordAskDao keywordAskDao;
	
	@Override
	public DaoSupport<KeywordAsk> getDao() {
		return keywordAskDao;
	}

	@Override
	public KeywordAsk findKeyword(String keyword) {
		return keywordAskDao.findKeyword(keyword);
	}
}
